<?php
//自定义Modle类

class UserModel extends Model{


    public function getInfo(){
        echo '这是自定义的Model类';
    }

    public function getIp(){
        echo $_SERVER['REMOTE_ADDR'];
    }
}